package com.jzsm.modules.sender.service.impl;

import com.jzsm.common.utils.AssertUtils;
import com.jzsm.modules.sender.pojo.PushTemplate;
import com.jzsm.modules.sender.dao.PushTemplateDao;
import com.jzsm.modules.sender.service.IPushTemplateService;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.experimental.FieldDefaults;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
public class PushTemplateServiceImpl implements IPushTemplateService {
    PushTemplateDao pushTemplateDao;
    @Override
    public PushTemplate selectById(String id) {
        AssertUtils.isNotBlank("id 参数不允许为空！", id);
        return pushTemplateDao.selectById(id);
    }

    @Override
    public List<PushTemplate> selectList(PushTemplate pushTemplate) {
        return pushTemplateDao.selectList(pushTemplate);
    }
}
